/**
 * 
 */
package xiaojian.toolkit.bean.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author hp
 *
 */
@Retention(RetentionPolicy.RUNTIME) 
public @interface BeanAttribute {
    public abstract boolean required() default false;
    
    /**
     * if allowEmpty == false then value = "" return false; value="  " return true
     * @return
     */
    public abstract boolean allowEmpty() default true;
    
    /**
     * if allowBlank == false then value = "" return false; value="  " return false
     * @return
     */
    public abstract boolean allowBlank() default true;
    public abstract String desc() default "";
}
